#ifndef WIDGET_FUNCA_SMART_CHAT_H
#define WIDGET_FUNCA_SMART_CHAT_H

#include <QWidget>
#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonDocument>
#include <QJsonObject>
#include <QUrl>
#include <QByteArray>
#include <QString>
#include <QDebug>
#include <QFont>

namespace Ui {
class Widget_funcA_Smart_chat;
}

class Widget_funcA_Smart_chat : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget_funcA_Smart_chat(QWidget *parent = nullptr);
    ~Widget_funcA_Smart_chat();
     QNetworkAccessManager *manager;
public:
    void generate(const QString &prompt);

private:
    Ui::Widget_funcA_Smart_chat *ui;
private slots:
    void handleResponse(QNetworkReply *reply);
    void on_Button_send_clicked();


};

#endif // WIDGET_FUNCA_SMART_CHAT_H
